package com.tbit.uqbike.client.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
public class LowCarbonDTO implements Serializable {
    private static final long serialVersionUID = -5091662085815237412L;

    /**碳排放量*/
    private double carbonNum;
    /**卡路里*/
    private double calorieNum;
    /**骑行时长*/
    private double rideTime;
    /**骑行里程*/
    private double rideMileage;


    public void emptyCarbonAndCalorie(){
        this.carbonNum = 0;
        this.calorieNum = 0;
    }


    public LowCarbonDTO(){
        this.carbonNum = 0;
        this.calorieNum = 0;
        this.rideTime = 0;
        this.rideMileage = 0;
    }

}
